<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>表单管理</title>
    <link rel="stylesheet" href="/static/component/pear/css/pear.css"/>
    <link rel="stylesheet" href="/static/component/markdown/editor/editormd.min.css" />
    <script src="/static/component/layui/layui.js"></script>
    <script src="/static/component/pear/pear.js"></script>
    <script src="/static/component/pear/module/ruinuo/sortable.js"></script>
    <script src="/static/component/pear/module/ruinuo/xm-select.js"></script>
</head>
<body>

<div class="view_body"></div>
<script type="text/html" id="view_body_data">
    <form class="layui-form" action="">
        <div class="mainBox ruinuo_box {{= form_config.form_label}}">
            <div class="main-container layui-row layui-col-space10 label_con">
                <fieldset class="design-box layui-elem-field layui-field-title layui-col-xs12"><legend class="tips_legend">基础设置</legend></fieldset>
<div class="design-box layui-col-xs12 layui-col-md3 width_box {{#  if(layui.engine_form.PowerField('width')==1){ }}form_disabled{{#  } }}">
<label class="layui-form-label layui-form-item-required">弹窗宽度</label>
<div class="layui-input-block " data_tag="input" data_source="">
<input  name="width" id="focus_5697_1713189836321_73930" type="text" lay-tag="input" autocomplete="off"  value="{{= d.detail.width}}" class="layui-input">
</div>
</div>
<div class="design-box layui-col-xs12 layui-col-md3 height_box {{#  if(layui.engine_form.PowerField('height')==1){ }}form_disabled{{#  } }}">
<label class="layui-form-label layui-form-item-required">弹窗高度</label>
<div class="layui-input-block " data_tag="input" data_source="">
<input  name="height" id="focus_2757_1713189852143_50514" type="text" lay-tag="input" autocomplete="off"  value="{{= d.detail.height}}" class="layui-input">
</div>
</div>
<div class="design-box layui-col-xs12 layui-col-md3 form_label_box {{#  if(layui.engine_form.PowerField('form_label')==1){ }}form_disabled{{#  } }}">
<label class="layui-form-label layui-form-item-required">标题对齐</label>
<div class="layui-input-block " data_tag="select" data_source="label_type">
<select name="form_label" lay-filter="select_filter" lay-search=""><option value="">请选择</option>
{{- layui.engine_form.SelectOption(d.source.label_type.rows,d.detail.form_label)}}</select>
</div>
</div>
<div class="design-box layui-col-xs12 layui-col-md3 label_width_box {{#  if(layui.engine_form.PowerField('label_width')==1){ }}form_disabled{{#  } }}">
<label class="layui-form-label layui-form-item-required">标题宽度</label>
<div class="layui-input-block " data_tag="input" data_source="">
<input  name="label_width" id="focus_91cb_1713189888866_88658" type="text" lay-tag="input" autocomplete="off"  value="{{= d.detail.label_width}}" class="layui-input">
</div>
</div>
<fieldset class="design-box layui-elem-field layui-field-title layui-col-xs12"><legend class="tips_legend">字段权限</legend></fieldset>
<blockquote class="design-box layui-elem-quote tips_legend layui-col-xs12">1、默认有表单对应权限的所有人可以新增、编辑、查看<br>
2、不可新增、编辑、查看权限没有打开的时候，则对应的权限无效<br>
3、相应的授权没有设置的时候，则所有人都不可操作</blockquote>
<div class="design-box layui-col-xs12 layui-col-md12 power_field_box {{#  if(layui.engine_form.PowerField('power_field')==1){ }}form_disabled{{#  } }}">
<div class="layui-input-block  block_margin_left_0" data_tag="jsontable" data_source="">
<textarea name="power_field" id="focus_26e2_1713677074514_52253" class="layui-input" style="display: none"  lay-filter="json_filter">{{= d.detail.power_field}}</textarea>
<div class="table_26e2_1713677074514_52253 f_table">
<table id="table_26e2_1713677074514_52253" lay-filter="filter_26e2_1713677074514_52253"></table>
</div>
</div>
</div>

            </div>
        </div>
        <div class="bottom">
            <div class="ruinuo-button-con">
                <button type="button" class="pear-btn pear-btn-primary" onclick="SendForm()">
                    <i class="layui-icon layui-icon-ok"></i>提交
                </button>
                <button type="reset" class="pear-btn">
                    <i class="layui-icon layui-icon-refresh"></i>重置
                </button>
            </div>
        </div>
    </form>
</script>
<script>

    function FormBind()
    {
        let tablepower_field={"col":"12","tag":"jsontable","cols":[{"field":"field","title":"字段","update":"input","options":"","minWidth":160,"required":1},{"field":"add","title":"不可新增","update":"switch","minWidth":"90"},{"field":"edit","title":"不可编辑","update":"switch","options":"","minWidth":"90"},{"field":"detail","title":"不可查看","update":"switch","minWidth":"90"},{"field":"user_ids","title":"用户授权","update":"select","options":"admin_user_list","minWidth":160},{"field":"role_ids","title":"角色授权","update":"select","options":"admin_role","minWidth":160},{"field":"department_ids","title":"组织授权","update":"select","options":"department_list","minWidth":160}],"help":"","hide":"2","field":"power_field","title":"字段权限","value":"","elem_id":"26e2_1713677074514_52253","required":"2","hide_label":"1"};
layui.engine_form.BindJsonTable(tablepower_field);

    }
</script>
<script src="/static/js/ruinuo/form/config.js?t={:time()}"></script>
<script src="/static/component/markdown/editor/editormd.min.js"></script>
<script src="/static/js/ruinuo/form/form.js?t={:time()}"></script>
<script src="/static/component/pear/module/jQuery.print.js"></script>
</body>
</html>